package com.teamwhole.modules.sys.entity;
import com.teamwhole.core.persistence.BaseEntity;

public class Department extends BaseEntity<Department>{

    private static final long serialVersionUID = 1L;
    
    private String      code;           // 编码
    private String      name;           // 名称
    private String      type;           // 机构类型
    private Integer     sort;           // 排序
    private String      address;        // 联系地址
    private String      zipCode;        // 邮政编码
    private String      master;         // 负责人
    private String      phone;          // 电话
    private String      fax;            // 传真
    private String      email;          // 邮箱
    private String		parentId;
    //private Department	parent;     // 父级编号
    //private List<Department>  children = new ArrayList<Department>();
    
    private String 		remark;
    
    private String isDistribute;	//	是否为工单派发部门
    private String isAudit;			//	是否为工单审核部门
    
    private String isFacility;		//	设施工单派发部门
    
    public Department() {
        super();
    }

    public Department(String id) {
        super(id);
    }
    
    public String getIsFacility() {
		return isFacility;
	}

	public void setIsFacility(String isFacility) {
		this.isFacility = isFacility;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public Integer getSort() {
        return sort;
    }
    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    public String getZipCode() {
        return zipCode;
    }
    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }
    public String getMaster() {
        return master;
    }
    public void setMaster(String master) {
        this.master = master;
    }
    public String getPhone() {
        return phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getFax() {
        return fax;
    }
    public void setFax(String fax) {
        this.fax = fax;
    }
    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }
//    public Department getParent() {
//        return parent;
//    }
//    public void setParent(Department parent) {
//        this.parent = parent;
//    }
//    public List<Department> getChildren() {
//        return children;
//    }
//    public void setChildren(List<Department> children) {
//        this.children = children;
//    }

	public String getIsDistribute() {
		return isDistribute;
	}

	public void setIsDistribute(String isDistribute) {
		this.isDistribute = isDistribute;
	}

	public String getIsAudit() {
		return isAudit;
	}

	public void setIsAudit(String isAudit) {
		this.isAudit = isAudit;
	}
    
}
